<?php

use think\facade\Route;

//轮播图
Route::rule('swiperList', 'Swiper/index');

//通知公告
Route::rule('noticePublicList', 'Notice/indexList');
Route::rule('noticeList', 'Notice/index');
Route::rule('noticeDetail/:id', 'Notice/detail');

//党建情况
Route::rule('pageDetail', 'Page/detail');
Route::rule('communityList', 'Build/communityList');
Route::rule('buildList', 'Build/index');
Route::rule('buildDetail/:id', 'Build/detail');

//家政服务
Route::rule('getCategory','Category/getCategory');
Route::rule('homeServiceList', 'HomeService/index');
Route::rule('homeServiceDetail/:id', 'HomeService/detail');

//登录及用户信息
Route::rule('userLogin', 'Login/index', 'POST');

Route::rule('getUser', 'User/index');
Route::rule('saveAvatar', 'User/updateAvatar', 'POST');
Route::rule('savePhone', 'User/updatePhone', 'POST');
Route::rule('saveUser', 'User/update', 'POST');

//文件上传
Route::rule('uploadFile', 'File/uploadFile','POST');

//意见反馈
Route::rule('saveFeedBack', 'FeedBack/save','POST');
Route::rule('feedBackList', 'FeedBack/index');
Route::rule('feedBackDetail/:id', 'FeedBack/detail');

//系统公用数据配置
Route::rule('getCategory','Category/getCategory');
Route::rule('getCategoryMultiple', 'Category/getCategoryMultiple','POST');
Route::rule('applyRepairCategory','Category/getCategoryMultipleForApplyRepair');

//报修申请
Route::rule('saveApply', 'ApplyRepair/save','POST');
Route::rule('applyList', 'ApplyRepair/index');
Route::rule('applyDetail/:id', 'ApplyRepair/detail');

//房屋认证
Route::rule('houseList', 'House/getHouseList');
Route::rule('houseTree', 'House/getHouseTree');
Route::rule('saveHouse', 'UserInfo/update','POST');

//定位
Route::rule('houseByDistance', 'Home/getHouseDetail');





Route::rule('getUserStatistic', 'User/getTopStatistics');
Route::rule('getUserInfoById', 'User/getUserInfoById');

//用户个人信息
Route::rule('getUserInfo', 'UserInfo/index');
Route::rule('saveUserInfo', 'UserInfo/update','POST');

Route::rule('representList','Represent/index','GET');
Route::rule('representDetail','Represent/detail','GET');

Route::rule('saveRepresentMessage','RepresentMessage/save','POST');
Route::rule('findMyMessage','RepresentMessage/index','GET');
Route::rule('findMessageDetail','RepresentMessage/detail','GET');
